package com.wuchao.springandmybatis;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

/**
 * @Author wuchao66
 * @Date 2022/7/5 11:15
 * @Version 1.0
 */
@Transactional(propagation = Propagation.REQUIRED,timeout = -1)
@Service("Tranc")
public class Tranc {
    public void show(){
        System.out.println("注解事务");
    }
}
